package com.three.crm.require;


import com.three.crm.util.AppManager;

/**
 * 接口地址
 * create by lqd on 2024-01-22.
 * @return
 */
public class Api {

    public static final String HOST = "https://guatu.ifkdx.com";//域名

    public static String getTokenParms(){
        return "?accessToken=".concat(AppManager.getToken());
    }

    /**
     * 用户相关
     * create by lqd on 2023-11-21.
     */
    class User{
        public static final String login = "/api/user/login";
        public static final String info = "/api/index/getUserInfo";
    }

    class File{
        public static final String getToken = "/api/video/getCosToken";//记货列表
        public static final String getAliToken = "/api/index/ststoken";//记货列表
    }

    /**
     * 通用
     * create by lqd on 2024-01-05.
     */
    class Common{
        public static final String getArea = "/api/index/getArea";//获取省市区
        public static final String getFormDetail = "/api/index/detail";
        public static final String getArticle = "/api/index/article_detail";//id=33是关于我们
        public static final String statistics = "/api/index/statistics";
        public static final String uploadLocation = "/api/index/position";
        public static final String goodsList = "/api/index/goods";
        public static final String saveLog = "/api/test/log";
        public static final String messageList = "/api/index/message";
        public static final String messageNumber = "/api/index/messageNumber";
        public static final String messageRead = "/api/index/messageRead";

        public static final String arrivalInfo = "/api/index/productInfo";
    }

    /**
     * 记货
     * @return
     * create by lqd on 2023-11-21.
     */
    class Produce{
        public static final String list = "/api/index/productList";//记货列表
        public static final String add = "/api/index/add_product";//记货
        public static final String detail = "/api/index/product_detail";//记货详情
    }

    /**
     * 采购
     * @return
     * create by lqd on 2024-01-05.
     */
    class Procure{
        public static final String pound_list = "/api/index/bangdanList";//磅单列表
        public static final String pound_add = "/api/index/add_bangdan";//添加磅单
        public static final String order_list = "/api/index/buyList";//采购下单列表
        public static final String order_add = "/api/index/add_buy";//添加采购单
        public static final String orderReply = "/api/index/reply";//添加采购单

    }

    /**
     * 伙伴
     * @return
     * create by lqd on 2024-01-05.
     */
    class Partner{
        public static final String list = "/api/index/company";//公司列表
        public static final String add = "/api/index/add_company";//添加伙伴
        public static final String detail = "/api/index/company_detail";//伙伴详情
        public static final String black = "/api/index/black_company";//伙伴拉黑
    }

    /**
     * 拜访
     * @return
     * create by lqd on 2024-01-05.
     */
    class Visit{
        public static final String list = "/api/index/visitList";
        public static final String add = "/api/index/add_visit";
    }

    /**
     * 任务
     * @return
     * create by lqd on 2024-01-05.
     */
    class Task{
        public static final String list = "/api/index/task";
    }

    /**
     * 反馈
     * @return
     * create by lqd on 2024-01-05.
     */
    class Feedback{
        public static final String list = "/api/index/feedbackList";
        public static final String add = "/api/index/add_feedback";
        public static final String enterMoney = "/api/index/add_final_money";
    }
}
